package com.vhall.component.entity.tag.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * EnableTagRequestVO-
 *
 * @author xing.wang
 * @date 2023/8/8
 */
@Data
public class EnableTagRequestVO implements Serializable {
    @NotNull(message = "标签 id 不能为空")
    @ParamName("tag_id")
    private Integer tagId;
    /**
     * 禁用启用
     * 1:启用,0:禁用
     */
    @NotNull(message = "启用/禁用 不能为空")
    @Range(min = 0,max = 1,message = "只能选择禁用,启用")
    private Integer enable;
}
